package com.yiyue.graduate.config;

import com.yiyue.graduate.intercept.LoginIntercept;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author yiyuexiaofusheng
 * @date 2021/1/22
 */
@Configuration
public class WebMvc implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new LoginIntercept()).
//                addPathPatterns("/admin/**")
//                .excludePathPatterns("/admin");
//    }
}
